<!DOCTYPE html>
<style>
span.error {
	color: red;
}
</style>
<section class="content-header" style="padding: 3px 15px 0 15px;">
	<ol class="breadcrumb" id="nav_title"
		style="position:static;float:none;margin-bottom: 5px;">
		<li class="active"><i class="fa fa-home"
			style="font-size:20px;position:relative;top:2px;left:-3px;"></i>
			&nbsp; <a href="${rc.contextPath}/sys/index">首页</a></li>
		<li class="active">艺术品交易中心</li><li class="active">租赁订单信息</li>
	</ol>
</section>
<div class="container-fluid">
	<div class="box box-primary">
		<div id="toolbar">
			<button id="np" type="button" class="btn" style="margin-left:0px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">待付款</button>
			<button id="ns" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">待发货</button>
			<button id="nr" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">待收货</button>
			<button id="zl" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">租赁中</button>
			<button id="af" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">已完成</button>
			<button id="edit" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;" disabled="disabled">编辑订单</button>
			<button id="deleteBtn" type="button" class="btn" style="margin-left:10px;padding:3px 17px;background:#3399fe;color:#fff;height: 35px;">删除</button>
			<div class="btn" style="margin-left:-20px;">
				<label class="col-sm-4 control-label" style="margin-top: 3px;">商品类型:</label>
				<div class="col-sm-8" style="margin-top: -7px;padding:3px 10px;">
					<select class="form-control" name="shopTypeId" id="shopTypeId">
						<option value="0">--未选择--</option>
						#foreach($list in $shopTypeInfo)
						<option value="${list.shopTypeId}">${list.shopTypeName}</option>
						#end
					</select>
				</div>
			</div>
		</div>
		<div class="row">
			<input type="hidden" id="userId" value="${user.userId}">
			<table id="table" data-toggle="table" data-url="zorderListByUserIdStatus" data-striped="true" data-toolbar="#toolbar" data-query-params="queryParams"  data-pagination="true" data-search="true" data-page-size="10">
				<thead>
					<tr>
						<th data-checkbox="true"></th>
						<th data-align="center" data-field="zl_id" data-sortable="true">订单编号</th>
						<th data-align="center" data-field="shop_name" data-sortable="true">商品名称</th>
						<th data-align="center" data-field="zl_count" data-sortable="true">商品数量</th>
						<th data-align="center" data-field="zl_amount" data-sortable="true">商品价钱</th>
						<!-- <th data-align="center" data-field="" data-sortable="true">订单金额</th> -->
						<!-- <th data-align="center" data-field="order_status" data-sortable="true">订单状态</th> -->
						<th data-align="center" data-field="re_name" data-sortable="true">收货人</th>
						<th data-align="center" data-field="re_phone" data-sortable="true">联系方式</th>
						<th data-align="center" data-field="re_add" data-sortable="true">地址</th>
					    <th data-align="center" data-sortable="true" data-field="operating_status" data-formatter="statu">订单状态</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</div>

<!-- 修改的弹窗 -->
<div class="modal fade" id="modal-edit" aria-labelledby="modalEditLabel"
	aria-hidden="true" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<form class="form-horizontal" id="addForm" action="" method="post">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="modalEditLabel">修改订单信息</h4>
				</div>
				<div class="modal-body">
					<div class="form-group">
						<label class="col-sm-3 control-label">订单编号</label>
						<div class="col-sm-9">
							<input name="zlId" id="zlId" type="text" class="form-control" disabled="disabled">
							<input name="reId" id="reId" type="hidden">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">收&nbsp;&nbsp;货&nbsp;&nbsp;人</label>
						<div class="col-sm-9">
							<input name="reName" id="reName" maxlength="10" type="text" class="form-control" placeholder="收货人">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">联系方式</label>
						<div class="col-sm-9">
							<input name="rePhone" id="rePhone" maxlength="10" type="text" class="form-control" placeholder="联系方式">
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">地&emsp;&emsp;址</label>
						<div class="col-sm-9">
							<input name="reAdd" id="reAdd" maxlength="10" type="text" class="form-control" placeholder="地址">
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default closeBtn" data-dismiss="modal">关闭</button>
					<button id="editBtn" type="submit" class="btn btn-primary">修改</button>
				</div>
			</form>
		</div>
	</div>
</div>


<customScript> 
	<script type="text/javascript" src="${rc.contextPath}/views/admin/business/zorderManager.js"></script> 
</customScript>


